-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Disk size in Kibibyte #305
Conversation
disk size in Kibibyte, Mebibyte, Gibibyte, Tibibyte
select the disks that have been created with 0 size and should be resized
Okay testing it now in the terraform provider, getting the following error |
same the PUT generated from https://github.com/Telmate/terraform-provider-proxmox/blob/b052f99b533c7165a6698102165f188d9418f4c3/proxmox/resource_vm_qemu.go#L1245 seems broken
|
Yeah, the way It's intended to work is: If size is exactly x amount of gigabytes, create disk with I think i only tested this code with the file backend. Gonna try the volume backed as well. |
I only adapted the provide to digest the new fields in the struct and it's not working like that, I guess some adjustment is needed |
@mleone87 I've figured it out, when the backend is |
@mleone87 Okay so now when the disk size isn't a nice gibibyte number we will create a disk the size of The most important code is in Worst case scenarios are:
Kinda happy when everything with the disk stuff is done. Never imagined that implementing every edge case would take this long. Hopefully we can wrap-up #187 soon. |
@Tinyblargon Not able to adapt the terraform code anymore, my changes are there Telmate/terraform-provider-proxmox#928 provider crashes
|
@mleone87 Sorry, I forgot to create the PR to fix the Terraform side of things. |
@Tinyblargon nevermind I got it and it's working, the only thing missing is change the schema definition for the size of disks to accept strings representing the size in kib or a size in KMGBT I guess this part can be merged? |
@mleone87 The code for the KMGT is ready. I'll make a pull tomorrow. |
Changes the size of all disk to be in Kibibytes instead of Gibibytes. Closes #304
Work done:
Size variable
(big commit at the end)